package org.example.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

/**
 * @author TonySong
 * @date 2024/4/24 0024
 * @time 15:03
 */
@RestController
public class UserController {

    @Value("${server.port}")
    private Integer port;

    @GetMapping("/hello")
    public String hello() {
        return "用户服务"+port+
                "hello user service!";
    }

}
